﻿using System.Data.Entity.ModelConfiguration;
using ProjetoComperio.DataLayer.Entities;

namespace ProjetoComperio.DataLayer.Configuration
{
    public class ArticleConfiguration : EntityConfiguration<Article>
    {
        public ArticleConfiguration()
        {
            Property(a => a.ContributionID).IsIdentity();
            MapHierarchy(
             a => new

             {
                 a.ContributionID,
                 a.PublishDate,
             }
            ).ToTable("Article");
        }
    }
}
